/*
	后台接口地址
	2024-4-05
	by: HuangZheng
*/

import { request } from "./index.js";
const test = (params) => {
  //测试接口
  return request({
    url: "/test",
    method: "post",
    data: params,
    header: {},
  });
};
const login = (params) => {
  //登录接口
  return request({
    url: "/login",
    method: "post",
    data: params,
    header: {},
  });
};
const sendCode = (data) => {
  //获取验证码接口
  return {
    url: "/sendcode",
    data: data,
    headers: {},
    method: "post",
  };
};

const getuserinfo = (data) => {
  //获取用户详细信息接口

  return request({
    url: "/getUserinfo",
    data: data,
    headers: {},
    method: "post",
  });
};

const getCarmap = (data) => {
  //获取滑板车位置接口
  return request({
    url: "/getCarmap",
    data: data,
    headers: {},
    method: "post",
  });
};
const Return_the_Car_Map = (data) => {
  //获取还车区域
  return request({
    url: "/ReturnTheCarMap",
    data: data,
    headers: {},
    method: "post",
  });
};

const GetOrder = (data) => {
  //获取订单接口
  return request({
    url: "/GetOrder",
    data: data,
    headers: {},
    method: "post",
  });
};
const Get_Price_Car = (data) => {
  //获取单车开锁订单信息
  return request({
    url: "/GetPriceCar",
    data: data,
    headers: {},
    method: "post",
  });
};
//导出所有接口
export {
  test,
  login,
  sendCode,
  getuserinfo,
  getCarmap,
  Return_the_Car_Map,
  GetOrder,
  Get_Price_Car,
};

